﻿using QLHREntities;
using QLHuongRungDAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QLHuongRungBUS
{
    public class ThucDonBUS
    {
        private ThucDonDAO thucdonDAO = new ThucDonDAO();
        public ThucDonBUS() { }

        public List<ThucDon> LayDanhSachThucDon()
        {
            return thucdonDAO.LayDanhSachThucDon();

        }

        public void ThemThucDonMoi(DateTime dtBatDau, DateTime dtKetThuc)
        {
            thucdonDAO.ThemThucDonMoi(dtBatDau, dtKetThuc);
        }

        public void ThemChiTietThucDonMoi(List<MonAn> thucdonmoi)
        {
            thucdonDAO.ThemChiTietThucDonMoi(thucdonmoi);
        }

        public List<ThucDon> LayDanhSachDatHang()
        {
            return thucdonDAO.LayDanhSachDatHang();
        }

        public void CapNhatDangDatHang(int maThucDon)
        {
            thucdonDAO.CapNhatDangDatHang(maThucDon);
        }
    }
}
